<div class="card-header">
    <?php
    $arr = [
        'index'=>'优惠列表',
        'create'=>'添加优惠',
        'type'=>'分类列表',
        'ctype'=>'添加分类',
        'setting'=>'网页设置',
    ];
    ?>
    @foreach($arr as $url => $banner)
        <a href="{{ url('/home/'.$url) }}" @if(request()->is('*/'.$url.'*'))  style="color: red;font-size: large" @endif>{{ $banner }}</a>
    @endforeach
        <span>首页今日/总访问次数{{\Illuminate\Support\Facades\Redis::get(date('Y-m-d'))}}/{{\Illuminate\Support\Facades\Redis::get('visit_num')}}</span>
</div>